package com.ksana.bean.test.service;

import com.ksana.bean.test.mapper.UserMapper;

public class UserService {
    private String name;
    private Integer id;
    private UserMapper userMapper;

    public UserService() {
    }

    public UserService(String name) {
        this.name = name;
    }

    public void init() {
        name = "autumn rain";
    }

    public String getInfo() {
        return "你好 " + name + " " + userMapper.queryInfo(id);
    }
}
